<?php
namespace Home\Controller;
use Think\Controller;
class PublicController extends Controller {
    public function vertify(){
      
      $config = array(
     'fontSize' => 15, // 验证码字体大小
     'length' => 4, // 验证码位数
     'useNoise' => false, // 关闭验证码杂点
     );
    $Verify = new \Think\Verify($config);
    $Verify->entry();
    if(!$Verify->check($_POST['verify']))
       
             $this->error("验证码错误！");
      
     


    }
   
}